package hu.pixelesztergalyos.continuity;

import java.io.IOException;

// Realizing the BuildingBlock in Java
public class BuildingBlock extends MosaicElement implements Collideable, Drawable {

	// Constructor
	public BuildingBlock() {
		super();
	}

	// Constructor
	public BuildingBlock(float x, float y) {
		super(x, y);
	}

	// Visual represents for the GUI
	// not used in proto
	public void draw() {
		// empty
	}

	// The BuildingBlock has collided with the Character
	// logic in Character.hitBy()
	public void hitBy(Character character) throws IOException {
		character.hitBy(this);
	}

	// The BuildingBlock has collided with another BuildingBlock
	// never occurs
	public void hitBy(BuildingBlock buildingBlock) {
		// empty
	}

	// The BuildingBlock has collided with the Gate
	// never occurs
	public void hitBy(Gate gate) {
		// empty
	}

	// The BuildingBlock has collided with the Key
	// never occurs
	public void hitBy(Key key) {
		// empty
	}

	// The BuildingBlock has collided with a TransitionBlock
	// never occurs
	public void hitBy(TransitionBlock transitionBlock) {
		// empty
	}

	// returns the visual represent in the XML
	public char getType() {
		return 'x';
	}
}
